{extend name="layout/datagrid" /}
{block name="head_foot"}
<!-- lightbox2 -->
<link rel="stylesheet" href="__ui_plugins__/lightbox/lightbox2/css/lightbox.min.css">
{/block}
{block name="content_header"}
<h1>
    房卡明细
    <small>advanced tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">财务</a></li>
    <li class="active">房卡明细</li>
</ol>
{/block}
{block name="content"}
<div class="box">
    <div class="box-header">
        <div class="row">
            <div class="col-md-5">
                <button type="button" class="btn btn-sm btn-success navbar-btn xsui-btn-refresh"><i class="fa fa-refresh"></i></button>
            </div>
            <div class="col-md-7">
                <form class="navbar-form navbar-right">
                    <div class="form-group">
                        <input type="text" name="word" class="form-control input-sm" placeholder="关键词..." title="用户名、姓名、手机号码、电子邮件" value="">
                    </div><button type="submit" class="btn btn-sm btn-default"><i class="fa fa-search"></i></button>
                </form>
            </div>
        </div>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover" data-firstrowid="{$firstRowId}">
            <thead>
                <tr>
                    <th><input type="checkbox" class="xsui-btn-checking-all" /></th>
                    <th>#</th>
                    <th>用户名</th>
                    <th>交易类型</th>
                    <th>房卡数量</th>
                    <th>用户ID</th>
                    <th>交易说明</th>
                    <th>交易时间</th>
                </tr>
            </thead>
            <tbody>
                {foreach name="list" item="vo"}
                <tr data-key="{$vo.id}">
                    <td><input type="checkbox" value="{$vo.id}" /></td>
                    <td title="{$vo.id}" class="xsui-rowid"></td>
                    <td>{$vo.account}</td>
                    <td>{$vo.tradeTypeText}</td>
                    <td>{$vo.gems}</td>
                    <td>{$vo.user_id}</td>
                    <td>{$vo.remark}</td>
                    <td>{$vo.createTimeText}</td>
                </tr>
                {/foreach}
            </tbody>
        </table>
        {$list->render()}
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
{/block}